﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Workflow.IDAO;
using Workflow.IService;
using Workflow.Model;

namespace Workflow.Service
{
	public  class RoleService : IRoleService
	{
		public IRoleDao RoleDao { get; set; }

		public IList<Role> GetAllRole()
		{
			return RoleDao.LoadAll().ToList();
		}
		public Role GetRole(int id)
		{
			return RoleDao.Get(id);
		}
		public IList<Role> GetRolesForGroup(int groupCode)
		{
			return RoleDao.GetRolesForGroup(groupCode);
		}
	}
}
